import { createStore, applyMiddleware, compose } from 'redux';
import thunkMiddleware from 'redux-thunk';
import reducer from './reducer';

export default function(initialState: any) {
	return createStore(reducer, initialState, compose(applyMiddleware(thunkMiddleware)));
}